package com.fjzn.detect.repository.user.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 用户菜单权限表
 * </p>
 *
 * @author hellowrold
 * @since 2021-04-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysUserMenu extends Model<SysUserMenu> {

    private static final long serialVersionUID = 1L;

    /**
     * 菜单ID
     */
    private Integer menuId;
    /**
     * 用户id
     */
    private Integer userId;

    @Override
    protected Serializable pkVal() {
        return this.userId + "" + this.menuId;
    }

}
